home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
dev
/
c
/
AmiVoGL_MDEV.lha
/
hershey
/
src
/
check.c
next >
Wrap
C/C++ Source or Header
|
1994-04-12
|
537b
|
26 lines
/* check.c: */
#include <stdio.h>
#include <stdlib.h>
#include "hershey.h"
/* --------------------------------------------------------------------- */
extern int hLoaded;
/* --------------------------------------------------------------------- */
/*
* check_loaded
*
* Checks and prints out a message if the font isn't loaded.
*/
void check_loaded(char *who)
{
if (!hLoaded) {
fprintf(stderr, "%s: no hershey font loaded.\n", who);
exit(1);
}
}
/* --------------------------------------------------------------------- */